package gdr.map;

import gdr.player.*;
import gdr.dev.Rendable;
import java.util.*;
/**
 * Rappresenta un'unita' del campo di battaglia
 * @author Giorgio Vitale
 *
 */
public class BattleMapUnit
{	protected Position pos;
	protected Rendable graphicsUnit;
	protected boolean isAttraversabile;
	
	/**
	 * Personaggi presenti sulla casella.
	 */
	protected ArrayList<DefaultPlayer> player;

	public BattleMapUnit(){
		player = new ArrayList<DefaultPlayer>();
		isAttraversabile = true;
	}

	
	
	public Position getPos() {
		return pos;
	}

	public void setPos(Position pos) {
		this.pos = pos;
	}

	public ArrayList<DefaultPlayer> getPlayer() {
		return player;
	}

	public void setPlayer(ArrayList<DefaultPlayer> player) {
		this.player = player;
	}
	public Rendable getGraphicsUnit() {
		return graphicsUnit;
	}
	public void setGraphicsUnit(Rendable graphicsUnit) {
		this.graphicsUnit = graphicsUnit;
	}
	public boolean isAttraversabile() {
		return isAttraversabile;
	}
	public void setAttraversabile(boolean isAttraversabile) {
		this.isAttraversabile = isAttraversabile;
	}



	@Override
	public String toString() {
		return "BattleMapUnit [pos=" + pos + "]";
	}
	
	
}
